package com.sgx.learning.luban.homework.constantpool;

import com.sgx.learning.luban.homework.basictype.U2;
import lombok.Data;

import java.io.IOException;
import java.io.InputStream;


@Data
public class ConstantFieldrefInfo extends ConstantPoolInfo {
    private short classIndex;
    private short typeIndex;

    @Override
    public void read(InputStream is) throws IOException {
        this.classIndex = U2.read(is).getValue();
        this.typeIndex = U2.read(is).getValue();
    }
}
